namespace study.Models;

public static class Stus
{
    public static List<Students> StudentList { get; set; } = GetStudents(10);
    private static List<Students> GetStudents(int n)
    {
        n = n < 3 ? 3 : n;
        var list = new List<Students>();
        for(var i = 1;i <= n;i++)
        {
          var tmp = new Students(i,"张小小"+i.ToString(),"2004-05-25","m");
        
          list.Add(tmp);
        }
        return list;
    }

}